package com.example.day1901;

import java.io.*;

/**
 * @author Lenovo
 */
public class CopyJavaDemo {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("myOtherStream\\PrintStreamDemo.java"));
        PrintWriter pw = new PrintWriter(new FileWriter("myOtherStream\\Copy.java"),true);
        String line;
        while ((line=br.readLine())!=null) {
            pw.println(line);
        }
        pw.close();
        br.close();
    }
}
